package com.hao.demo.springcloud.server.provider.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class DemoDTO implements Serializable {
    @ApiModelProperty(value = "用户名称", required = true)
    @NotNull(message = "用户名称不能为空")
    private String userName;

    @ApiModelProperty("真实名称")
    private String nickName;

}
